import http from './http.js'

// 诊所信息
export const hospitals = (data) =>{
   return http({
    url: '/hospitals',
    method: 'get',
    params:data
  })
}


// 添加诊所
export const addHospital = (data) =>{
   return http({
    url: '/add-hospital',
    method: 'post',
    data
  })
}


// 修改诊所
export const editHospital = (data) =>{
   return http({
    url: '/edit-hospital',
    method: 'post',
    data
  })
}

// 删除诊所
export const delHospital = (data) =>{
   return http({
    url: '/edit-hospital',
    method: 'post',
    data
  })
}


// 真实详情
export const hospital = (data) =>{
   return http({
    url: '/hospital',
    method: 'get',
    params:data
  })
}
